Ruby - 字符串占位符 Posted on 2014-03-03 | View Ruby中的字符串占位符的替换值是操作字符串的常用方法,使用#进行变量或者ruby代码的求值,从而替换结果插入字符串中 1234567#/usr/bin/env rubybook_mark = "znw123"# following replace and insertputs "The book mark is #{book_mark}"#following run ruby code, string length and insertputs "The book mark length is #{book_mark.length}"